import co from 'co'

import user from './user.js'
import course from './course.js'
import exam from './exam.js'

let sessionid = -1;

var login = user.test()
				.done(function(data){
					sessionid = data.data.sessionid;
				})

login.then(() => {
	course.test(sessionid);
	exam.test(sessionid);
	return 'hehe';
});

// co(function* (){
// 	task.getQuestypes();
// 	task.getCourses();

// 	yield task.login();
	
// 	task.getHisScores();
// });
